Optimal. Leaf size=34 \[ -\frac{6 x+5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0080393, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {614, 616, 31} \[ -\frac{6 x+5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 614
Rule 616
Rule 31
Rubi steps
\begin{align*} \int \frac{1}{\left (2+5 x+3 x^2\right )^2} \, dx &=-\frac{5+6 x}{2+5 x+3 x^2}-6 \int \frac{1}{2+5 x+3 x^2} \, dx\\ &=-\frac{5+6 x}{2+5 x+3 x^2}-18 \int \frac{1}{2+3 x} \, dx+18 \int \frac{1}{3+3 x} \, dx\\ &=-\frac{5+6 x}{2+5 x+3 x^2}+6 \log (1+x)-6 \log (2+3 x)\\ \end{align*}
Mathematica [A] time = 0.0113213, size = 33, normalized size = 0.97 \[ \frac{-6 x-5}{3 x^2+5 x+2}+6 \log (x+1)-6 \log (3 x+2) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 32, normalized size = 0.9 \begin{align*} - \left ( 1+x \right ) ^{-1}+6\,\ln \left ( 1+x \right ) -3\, \left ( 2+3\,x \right ) ^{-1}-6\,\ln \left ( 2+3\,x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.90578, size = 46, normalized size = 1.35 \begin{align*} -\frac{6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} - 6 \, \log \left (3 \, x + 2\right ) + 6 \, \log \left (x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.15157, size = 132, normalized size = 3.88 \begin{align*} -\frac{6 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (3 \, x + 2\right ) - 6 \,{\left (3 \, x^{2} + 5 \, x + 2\right )} \log \left (x + 1\right ) + 6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.266646, size = 29, normalized size = 0.85 \begin{align*} - \frac{6 x + 5}{3 x^{2} + 5 x + 2} - 6 \log{\left (x + \frac{2}{3} \right )} + 6 \log{\left (x + 1 \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27257, size = 49, normalized size = 1.44 \begin{align*} -\frac{6 \, x + 5}{3 \, x^{2} + 5 \, x + 2} - 6 \, \log \left ({\left | 3 \, x + 2 \right |}\right ) + 6 \, \log \left ({\left | x + 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]